package com.changgou.common.pojo;

/**
 * @Description: 自定义异常处理类
 * @Author: JoinCao
 * @CreateDate: 2020-03-15
 * @UpdateUser: JoinCao
 * @UpdateDate: 2020-03-15
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
public class CustomException extends RuntimeException {
    private Result result;

    //构造器:创建构造方法,重新定义成员变量result
    public CustomException(Integer code, String message) {
        this.result = new Result(false, code, message);
    }

    public Result getResult() {
        return result;
    }
}
